# $Id: PKGBUILD 86013 2013-03-11 10:27:13Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+aur@gmail.com>

pkgname=perl-email-address
pkgver=1.898
pkgrel=1
pkgdesc="RFC 2822 Address Parsing and Creation "
arch=('any')
url="http://search.cpan.org/dist/Email-Address"
license=('GPL' 'PerlArtistic')
depends=('perl')
options=('!emptydirs')
source=("http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/Email-Address-$pkgver.tar.gz")
md5sums=('0ea27eae4888ec25733af68b51f20245')

build() {
  cd  $srcdir/Email-Address-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd  $srcdir/Email-Address-$pkgver
  make install DESTDIR=$pkgdir
  find $pkgdir -name '.packlist' -delete
  find $pkgdir -name '*.pod' -delete
}
